package kr.hkit.powerjava.chapter09.work;

public class PlaneTest {
	public static void main(String[] args) {
		Plane p1 = new Plane("대한항공", "A370", 700);
		System.out.println(p1);
		System.out.println("Plane 수 = "+Plane.getPlane());
		
		Plane p2 = new Plane("대한항공", "A380", 500);
		System.out.println(p2);
		System.out.println("Plane 수 = "+Plane.getPlane());
		
		Plane p3 = new Plane("아시아나항공", "B240", 257);
		System.out.println(p3);
		System.out.println("Plane 수 = "+Plane.getPlane());
		
		Plane p4 = new Plane();
		System.out.println(p4);
		System.out.println("Plane 수 = "+Plane.getPlane());
		
		System.out.println("----p4 비행기 정보 설정----");
		p4.setCustomer(384);
		p4.setModel("U150");
		p4.setProduct("United Airline ");
		System.out.println(p4);
		
	}
}
